package com.lagou.homework.support;

import com.lagou.homework.annotation.AnnotationMetadata;

/**
 * @author boting.guo
 * @date 2021/9/18 23:56
 */

public class BeanDefinition {

	public BeanDefinition(Class<?> beanClass) {
		this.beanClass = beanClass;
		this.beanClassName = beanClass.getName();
		this.metadata = AnnotationMetadata.introspect(beanClass);
	}

	private String beanName;

	private final String beanClassName;

	private final Object beanClass;

	private final AnnotationMetadata metadata;

	public String getBeanName() {
		return beanName;
	}

	public void setBeanName(String beanName) {
		this.beanName = beanName;
	}

	public String getBeanClassName() {
		return beanClassName;
	}

	public Object getBeanClass() {
		return beanClass;
	}

	public AnnotationMetadata getMetadata() {
		return metadata;
	}
}